# coding=utf-8
from flask import jsonify


# flag = True / False

def success(message="", data=None):
    return jsonify({'success': True, 'message': message, 'data': data})


def fail(errorMsg="", data=None):
    return jsonify({'success': False, 'errorMsg': errorMsg, 'data': data})
